package com.wei.controller;

import com.wei.service.HiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HiController {
    @Autowired
    private HiService hiService;

    @RequestMapping("hi")
    @ResponseBody
    public String sayHi(String name){
        String response = hiService.sayHi(name);
        return "RIBBON:" + response;
    }
}
